package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsAuthDto;
import com.heima.model.wemedia.pojos.NewsRequestDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {
    PageResponseResult list(NewsRequestDto dto);

    ResponseResult submit(WmNews wmNews) throws Exception;

    ResponseResult<WmNews> one(Integer id);

    ResponseResult down0rUp(WmNews wmNews);

    ResponseResult delNews(Integer id);

    ResponseResult listVo(WmNewsAuthDto dto);

    ResponseResult oneVo(Integer id);
}
